$(document).ready(function(){
	var judulpanel1;
	var judulpanel2;
	var judulpanel3;
	var judulpanel4;
	var judulpanel5;
	var judulpanel6;
	
	if(slot_propinsi == "YES"){
		fillCombo(host+'dashboard/fillCombo/prov','prov');
		fillCombo(host+'dashboard/fillCombo/kat','kat',id_menu);
	}
	
	$('#prov').die();
	$('#prov').change(function(){
		
	});
	
	$('#kom').panel({
		width: (lebar-14),
		height: (tinggi-250),
		//title: '<center>Pilih Kategori</center>'
		//html: '<div align="center"><select id="komoditi"></select></div>'
	});

	
	$('#panelsMom1').css('height', (frmHeight-210)+'px');
	//$('#panelsMom2').css('height', (tinggi-15)+'px');	
	$('#panelsMom1').css('width', (lebar-8)+'px');
	//$('#panelsMom2').css('width', (lebar-10)+'px');	
	
	
	//$('#c1').css('width', lebar2+'px');	
	//$('#c2').css('width', lebar2+'px');	
	//$('#c3').css('width', lebar2+'px');	
	//$('#c1').css('height', (tinggi-25)+'px');	
	//$('#c2').css('height', (tinggi-25)+'px');	
	//$('#c3').css('height', (tinggi-25)+'px');	
	
	
	//$('#c4').css('width', lebar2+'px');	
	//$('#c5').css('width', lebar2+'px');	
	//$('#c6').css('width', lebar2+'px');	
	//$('#c4').css('height', tinggi+'px');	
	//$('#c5').css('height', tinggi+'px');	
	//$('#c6').css('height', tinggi+'px');	
	
	$('#chart1_'+modul).panel({
		width: lebar-14,
		height: (frmHeight-445),
		title: judulpanel1,
		
	});
	
	$('#chart2_'+modul).panel({
		width: lebar-14,
		height: (frmHeight-445),
		title: judulpanel2,
		
	});
	
});


$('#tampil').click(function(){
	if(slot_propinsi == "YES"){
		post['item_data_id']=$('#kat').val();
		post['prov']=$('#prov').val();
	}else if(slot_propinsi == "NO"){
		post['id_jenis'] = id_menu;
	}
	post['tahun']=$('#tahun').val();
	
	if(FusionCharts("fcfchart1")){FusionCharts( "fcfchart1" ).dispose();}
	if(FusionCharts("fcfchart2")){FusionCharts( "fcfchart2" ).dispose();}
	get_chart('fcfchart1','Column2D','','chart1_'+modul,frmWidth-100,frmHeight-450);
	get_chart('fcfchart2','Pie3D','','chart2_'+modul,frmWidth-100,frmHeight-450);
	
	//get_chart('fcfchart1','Column3D','','chart2');
	//alert('AA')
	//$.post(host+'dashboard/get_form/')
	//$('#isi'+modul).html("").addClass("loading");
	//$('#sis2'+modul).html("").addClass("loading");
});